package com.itheima.pojo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonView;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Description:
 * @Version: V1.0
 */
public class User implements Serializable {
    public  interface Userdetail{}

    public  interface UserInfo extends Userdetail{}

    private int uuid;

    @JsonView(UserInfo.class)
    private String userName;

    @JsonIgnore
    private String password;
    @JsonView(Userdetail.class)
    private String realName;
    private int gender;
    private Date birthday;

    private List<Integer> ids;

    public List<Integer> getIds() {
        return ids;
    }

    public void setIds(List<Integer> ids) {
        this.ids = ids;
    }

    public User() {
    }

    public User(int uuid, String userName, String password, String realName, int gender, Date birthday, List<Integer> ids) {
        this.uuid = uuid;
        this.userName = userName;
        this.password = password;
        this.realName = realName;
        this.gender = gender;
        this.birthday = birthday;
        this.ids = ids;
    }

    public int getUuid() {
        return uuid;
    }

    public void setUuid(int uuid) {
        this.uuid = uuid;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    @Override
    public String toString() {
        return "User{" + "uuid=" + uuid + ", userName='" + userName + '\'' + ", password='" + password + '\'' + ", realName='" + realName + '\'' + ", gender=" + gender + ", birthday=" + birthday + ", ids=" + ids + '}';
    }
}
